const _ = require('lodash');
const checkParams = (params, obj)=> {
    let arr = _.difference(params, Object.getOwnPropertyNames(obj));
    if (arr.length !== 0) {
        return {
            status:0,
            msg:`缺少参数:${arr.toString()}`
        };
    }else{
        return {
            status:1,
            msg:`通过检测`
        };
    }

}
module.exports = checkParams;